package net.hn.hnms.biz.plan.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.hn.hnms.sys.common.core.enums.CoalInfo;

import java.math.BigDecimal;

@Data
@ApiModel("月产量情况")
public class MonthYieldVo {

    /**
     * 月计划产量
     */
    @ApiModelProperty(value = "月计划产量")
    private BigDecimal planOutput;

    /**
     * 月累计产量
     */
    @ApiModelProperty(value = "月累计产量")
    private BigDecimal output;



    @ApiModelProperty(value = "日计划产量")
    private BigDecimal planOutputDay;

    /**
     * 月累计产量
     */
    @ApiModelProperty(value = "日累计产量完成率")
    private BigDecimal completionRateDay;

    /**
     * 完成率
     */
    @ApiModelProperty(value = "完成率")
    private BigDecimal completionRate;

    /**
     * 本月已过天数
     */
    @ApiModelProperty(value = "本月已过天数")
    private Integer pastDate;



    /**
     * 当前时间
     */
    @ApiModelProperty(value = "当前时间")
    private Integer nowDate;

    /**
     * 本月剩余天数
     */
    @ApiModelProperty(value = "本月剩余天数")
    private Integer surplusDate;



    @ApiModelProperty(value = "月超欠")
    private BigDecimal monthOverabundance;


    @ApiModelProperty(value = "年超欠")
    private BigDecimal yearOverabundance;


    @ApiModelProperty(value = "平均日产")
    private BigDecimal avgOutput;


    @ApiModelProperty(value = "年累计计划")
    private BigDecimal yearCumulativePlan;

    @ApiModelProperty(value = "年累计完成")
    private BigDecimal yearCumulativeCompletion;
    @ApiModelProperty(value = "年完成(精度完整)")
    private BigDecimal yearOutput;


    @ApiModelProperty(value = "年计划")
    private BigDecimal yearPlan;

    @ApiModelProperty(value = "计划产量")
    private BigDecimal planOutPuts;

    @ApiModelProperty(value = "实际完成年度百分比")
    private BigDecimal yearCompletionRate;

    @ApiModelProperty(value = "煤量名称")
    private String coalQuantity;

    @ApiModelProperty(value = "自用煤")
    private BigDecimal backCoal;

    @ApiModelProperty(value = "月实际完成进尺")
    private BigDecimal footageMonth;

    @ApiModelProperty(value = "进尺月计划")
    private BigDecimal planFootageMonth;

    @ApiModelProperty(value = "年累计产量")
    private BigDecimal outputYear;

    @ApiModelProperty(value = "今日产量")
    private BigDecimal todayQuantity;

    @ApiModelProperty(value = "年实际完成进尺")
    private BigDecimal footageYear;

    @ApiModelProperty(value = "矸石月销量")
    private BigDecimal shaleAmount;

    @ApiModelProperty(value = "煤泥月销量")
    private BigDecimal coalSlime;

    @ApiModelProperty(value = "煤量名称")
    private String coalName;

    @ApiModelProperty(value = "库存(t)")
    private BigDecimal stock;

    @ApiModelProperty(value = "年同比")
    private BigDecimal YearYoy;;

    @ApiModelProperty(value = "月同比")
    private BigDecimal MonthYoy;;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("公司简称")
    private String companyNameRe;

    @ApiModelProperty("矿名称")
    private String mineName;


    @ApiModelProperty("公司编码")
    private String mineCode;

    @ApiModelProperty("集团编码")
    private String companyCode;

    @ApiModelProperty("核定产能")
    private BigDecimal provedOutput;

    @ApiModelProperty("井工产能")
    private BigDecimal wellProvedOutput;

    @ApiModelProperty("露天产能")
    private BigDecimal dewProvedOutput;


    public void setCompanyNames(String companyCode) {

        this.companyName = CoalInfo.getCompanyNameByCompanyCode(companyCode);
    }
    public void setCompanyNameRe(String companyCode) {

        this.companyNameRe = CoalInfo.getCompanyReferredByCompanyCode(companyCode);
    }
    public void setMineNames(String mineName) {

        this.mineName = CoalInfo.getMineNameByMineCode(mineName);
    }
}
